import * as React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Diamond from './diamond';
import Vip from './vip';
import Income from './income';
import Consumer from './consumer';
import Translations from './translations';
import Rechargehistory from './rechargehistory';
import Paymoney from './paymoney';
import Success from './success'
import Settings from './settings';
import { Provider } from 'react-redux';
import store from '@/store/postindex';
import Language from './language';

const Stack = createNativeStackNavigator();

export default function MyLayout() {
    return (
        <Provider store={store}>
            <Stack.Navigator id={undefined} screenOptions={{ headerShown: false }}>
                <Stack.Screen name="diamond" component={Diamond} />
                <Stack.Screen name="vip" component={Vip} />
                <Stack.Screen name="income" component={Income} />
                <Stack.Screen name="consumer" component={Consumer} />
                <Stack.Screen name="translations" component={Translations} />
                <Stack.Screen name="rechargehistory" component={Rechargehistory} />
                <Stack.Screen name="paymoney" component={Paymoney} />
                <Stack.Screen name="success" component={Success} />
                <Stack.Screen name="settings" component={Settings} />
                <Stack.Screen name="language" component={Language} />
            </Stack.Navigator>
        </Provider>
    );
}
